<?php
/**
 * @copyright Copyright (c) 2021 勾股工作室
 * @license https://opensource.org/licenses/Apache-2.0
 * @link https://www.gougucms.com
 */

namespace app\admin\validate;
use think\Validate;

class CouponValidate extends Validate
{
    protected $rule = [
        'title' => 'require',
        'money' => 'require',
        'end_time' => 'require',
        'status' => 'require',
    ];

    protected $message = [
        'title.require' => '标题不能为空',
        'money.require' => '兑换量不能为空',
        'end_time.require' => '有效期至不能为空',
        'status.require' => '是否上架不能为空',
    ];
}